package springannotaion.compment22;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;
import springannotaion.bean.B1;

/**
 * @author sss
 * @date 2020-02-12 12:02
 **/
@Component("b2")
public class FactoryBean1 implements FactoryBean<B1> {
	@Override
	public B1 getObject() throws Exception {
		return new B1();
	}

	@Override
	public Class<?> getObjectType() {
		return B1.class;
	}

	@Override
	public boolean isSingleton() {
		return false;
	}
}
